package com.huawen.cms.app.util;

import java.util.HashMap;
import java.util.Map;

public class CommonResult {

    public boolean success;

    public int code;

    public String msg;

    public Object data;

    public Map<String, Object> map;

    public CommonResult() {
        success = true;
        code = 1000;
        msg = "";
        map = new HashMap<String, Object>() {
        };
    }

    //region 方法
    public boolean isSuccess() {
        return success;
    }

    public void setSuccess(boolean success) {
        this.success = success;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public Object getData() {
        return data;
    }

    public void setData(Object data) {
        this.data = data;
    }

    public Map<String, Object> getMap() {
        return map;
    }

    public void setMap(Map<String, Object> map) {
        this.map = map;
    }
    //endregion


}
